<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      let a = [{ id: '1' }, { id: '2' }, { id: '3' }, { id: '4' }]
      let b = [{ id: '1' }, { id: '2' }, { id: '4' }]

      let addArr = a.filter(item => {
        let commonData = b.filter(subItem => {
          return subItem.id == item.id
        })
        return commonData.length < 1
      })
      console.log('[ add ]-24', add)
    </script>
  </body>
</html>
